package com.ll.app.api.req;

import com.ll.domain.tenant.enums.AppEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WechatUserLoginDTO {

    @NotNull(message = "tenantId不能为null")
    @ApiModelProperty(value = "ID", required = true,  example = "1")
    private Long tenantId;

    @NotNull(message = "app不能为null")
    @ApiModelProperty(value = "应用标识", required = true,  example = "1")
    private AppEnum app;

    @NotNull(message = "loginCode不能为null")
    @ApiModelProperty(value = "微信的登陆授权code", required = true, example = "1")
    private String loginCode;

    @ApiModelProperty(value = "第三方用户id", example = "123456")
    private String otherUserId;
}
